Remove a nested redundant #if
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: tanner.e.davies, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file)
Filling as a good first bug to learn workflows.
MOZ_SANDBOX is checked twice and we are in the same block
https://searchfox.org/mozilla-central/source/toolkit/xre/nsXREDirProvider.cpp#619
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-preprocessor.html
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
Assignee | ||
Comment 1•5 years ago
|
||
Could I take this one, please?
Reporter | ||
Comment 2•5 years ago
|
||
Sure, please provide a paych
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Assignee | ||
Comment 6•5 years ago
|
||
After taking a closer look, it appears there is another redundant #if/#endif that I missed within the same block (line 740 and 744 of what was pushed on this bug). I think this should be reopened so someone else can use it as a first bug to learn workflow.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
As a note, the outer #if (MOZ_SANDBOX) (the one that doesn't need to be removed) is found on line 607 of what was pushed (follow the link from comment 4--the file may have been changed since this was pushed) and its respective #endif is on line 835.
Reporter | ||
Comment 8•5 years ago
|
||
Please open a new bug instead. They are cheap and it prevents some confusion.
Assignee | ||
Comment 9•5 years ago
|
||
Sounds good. Will do.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•3 years ago
|
Description
•